home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / nostalji / bbs / prog / webtrial.exe / WBSMISC.QIP / TEST-CGI.BAT < prev    next >
DOS Batch File  |  1995-06-14  |  870b  |  36 lines

  1. rem
  2. rem ****************
  3. rem * TEST-CGI.BAT *
  4. rem ****************
  5. rem
  6. rem Test script for use with CGI example document included
  7. rem with server documentation. Blank line REQUIRED after
  8. rem Content-type header!
  9. rem
  10. rem Echo is OFF at script entry
  11. rem
  12. set of=%output_file%
  13. echo Content-type:text/plain > %of%
  14. echo. >> %of%
  15. echo CGI/1.0 test script report: >> %of%
  16. echo. >> %of%
  17. echo argc = %#  argv: >> %of%
  18. echo. >> %of%
  19. if NOT %#==0  echo %1 %2 %3 %4 %5 %6 %7 %8 >> %of%
  20. if %#==0  echo {empty} >> %of%
  21. echo. >> %of%
  22. echo environment variables: >> %of%
  23. echo. >> %of%
  24. set >> %of%
  25. echo. >> %of%
  26. if NOT %REQUEST_METHOD%==POST goto done
  27. echo content for POST: >> %of%
  28. echo ---- begin content ---- >> %of%
  29. type %CONTENT_FILE% >> %of%
  30. echo. >> %of%
  31. echo ----- end content ----- >> %of%
  32. echo. >> %of%
  33. :done
  34. echo -- end of report -- >> %of%
  35.  
  36.